package controller.gui;

import mapelements.Renderer;
import assister.ClassAssister;
import gui.MapEditorFrame;
import gui.SelectionBox;

/**rappresenta un controller che pilota una selectionBox atta all'inserimento di Renderers
 * 
 * @author koldar
 * @version 1.1
 */
public class RendererSelectionBoxController extends SelectionBoxController{

	public RendererSelectionBoxController(MapEditorFrame frame,SelectionBox boxwired,InsertionDisplayController displaycontroller ,Class<?> classFather) {
		super(frame, boxwired, displaycontroller,classFather);
	}

	@Override
	protected void addToSelectionBox(String name, Class clazz) {
		//è un renderer
		this.listenedBox.addEntry(name,clazz);
	}

	@Override
	protected void transferClassToDisplayController(Class<?> classToTransfer) {
		this.insertionDisplayController.setRendererToAdd((Class<Renderer>) classToTransfer);
	}


}
